﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fibonacciserie
{
    class Program
    {
        static void Main(string[] args)
        {
            Program p = new Program();
            p.loop(10);
        }

        public int fibRek(int n)
        {
            if (n < 2)
            {
                return n;
            }
            else
            {
                return fibRek(n - 1) + fibRek(n - 2);
            }
            
        }
        public void loop(int n)
        {
            for(int i = 1; i <= n; i++)
            {
                Console.Write(fibRek(i) + " ");
            }
        }

        public void fibIter(int n)
        {

        }
    }
}
